﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/AdminTemplate.Master" AutoEventWireup="true"
    CodeBehind="ManageProfile.aspx.cs" Inherits="RealtorsPortal.AdminCP.ManageProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Manage profile </title>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //set option
            $("#navheadProfiles").addClass("selected");
            $("#mnuProfiles").css("display", "block");
            $(".submenu li a[title='Manage profile']").css({ "color": "#fff", "background": "#222", "border": "1px solid #333" });

            $("#contentArea").tabs(); //tab view
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Update my profile</h1>
    _____________________________________________________________________________________

    <fieldset>
        <legend>My profile</legend>
        <asp:Label ID="lblStatus" runat="server" Font-Bold="True" Font-Size="X-Large" 
            ForeColor="#999966"></asp:Label>
        <div class="input_field">
            <label> &nbsp;</label>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Bold="True" 
                ForeColor="Red" ValidationGroup="updateprofile" />
            
        </div>
        <div class="input_field">
            <label>
                Email(*):
            </label>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="mediumfield"></asp:TextBox>
            
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="Email is required" ControlToValidate="txtEmail" 
                Font-Bold="True" ForeColor="Red" ValidationGroup="updateprofile">Error</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="Invalid email" ControlToValidate="txtEmail" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                Font-Bold="True" ForeColor="Red" ValidationGroup="updateprofile">Error</asp:RegularExpressionValidator>
        </div>
        <div class="input_field">
            <label>
                First name:
            </label>
            <asp:TextBox ID="txtFirstName" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field">
            <label>
                Last name:
            </label>
            <asp:TextBox ID="txtLastName" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field">
            <label>
                Phone:
            </label>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field">
            <label>
                Company:
            </label>
            <asp:TextBox ID="txtCompany" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field">
            <label>
                Address:
            </label>
            <asp:TextBox ID="txtAddress" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field">
            <label>
                Paypal account:
            </label>
            <asp:TextBox ID="txtPaypal" runat="server" CssClass="mediumfield"></asp:TextBox>
        </div>
        <div class="input_field no_margin_bottom" style="margin-left:160px">
            <asp:Button ID="btnUpdateProfile" runat="server" Text="Update" class="submit" 
                ValidationGroup="updateprofile" onclick="btnUpdateProfile_Click" />
            <input class="submit" type="reset" value="Reset" />
        </div>
    </fieldset>
</asp:Content>
